/*
 * Response.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.web.api.response;

import java.io.Serializable;

/**
 * 通用返回
 *
 * @author kiri
 * @date 2015年3月6日
 * @version 1.0
 */
public class Response implements Serializable {

	private static final long serialVersionUID = -6439105773987413781L;

	public static final Response SUCCESS = new Response(0, null);

	private Integer code;
	private String message;

	public Response() {
		this(0, null);
	}

	public Response(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
